<?php

namespace app\common\libs\pay;

use Exception;
use yiqiniu\inside_sdk\pay_libs\Transactions;

/**
 * 微信pay
 */
class WxPayLib extends Transactions
{

    /**
     *  企业付款到零钱
     * @param array $data
     * @return array
     * @throws \Exception
     */
    public function CompanyPay(array $data): array
    {
        try {
            return $this->HttpPost("/company_pay/transfer", $data);
        } catch (Exception $e) {
            throw $e;
        }
    }

}